// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {

        Simulator simulator1=new Simulator();
        simulator1.playSound(new Dog());



        Simulator simulator2=new Simulator();
        simulator2.playSound(new Cat());

    }
}